﻿using Cl.Utils.Helper.AutoMap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Model.DataBaseEntityDtos.Goods.GoodsGroup
{
    public class GoodsGroupOutputDto
    {
        public GoodsGroupOutputDto() { }
        public GoodsGroupOutputDto(Entity.DataBaseEntity.Goods.GoodsGroup info)
        {
            //自动映射到当前对象
            AutoMapHelper.MapTo(info, this);
            Name = info.Title;
        }
        public int Id { get; set; }

        public int ShopId { get; set; }

        public string Name { get; set; } = string.Empty;

        public string Description { get; set; } = string.Empty;

        public string IconPath { get; set; } = string.Empty;
    }
}
